/**
 * Create by richliu1023
 * @date 16/5/19
 * @email richliu1023@gmail.com
 * @github https://github.com/RichLiu1023
 * @description a simple explanation
 */
class EventController {
	private static _eventDispatcher:rm.EventDispatcher = rm.EventDispatcher.create();

	public constructor() {
	}

	public static addEventListener( eventID:number, callback:Function, thisObj:any ):void {
		this._eventDispatcher.addEventListener( eventID, callback, thisObj );
	}

	public static removeEventListener( eventID:number, callback:Function, thisObj:any ):void {
		this._eventDispatcher.removeEventListener( eventID, callback, thisObj );
	}

	public static hasEventListener( eventID:number, callback:Function, thisObj:any ):boolean {
		return this._eventDispatcher.hasEventListener( eventID, callback, thisObj );
	}

	public static dispatchEvent( eventID:number, data?:any ):void {
		this._eventDispatcher.dispatchEvent( eventID, data );
	}

}